home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: JavaScript
- @Function: unescape returns the ASCII string for the specified value.
- The unescape function is not a method associated with any object, but is part of the
- language itself.
- @Syntax: unescape("string");
- <BR><I>string</I> is a string containing characters in either of the
- following forms:
- <BR>"<I>integer</I>", where <I>integer</I> is a number between 0 and 255 (decimal)
- <BR>"<I>hex</I>", where <I>hex</I> is a number between 0x0 and 0xFF (hexadecimal)
- <P>The string returned by the unescape function is a series of characters in the ISO
- Latin-1 character set.
- @Summary: unescape - returns the ASCII string for the specified value
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("unescape(string)", selection);
- editor.setActive("Insert unescape");
- }
- }
-
- !!/Script
-